//
//  RMMChangeNameView.m
//  Romomo
//
//  Created by puman on 2016/10/19.
//  Copyright © 2016年 mazegong. All rights reserved.
//

#import "RMMChangeNameView.h"

@implementation RMMChangeNameView

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = kCColor;
        UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 16, kScreenWideth, 44)];
        view.backgroundColor = kWhiteColor;
        [self addSubview:view];
        
        _nameT = [[UITextField alloc] initWithFrame:CGRectMake(15, 0, self.width - 30, 44)];
        _nameT.textColor = COLORFROMCODE(0x000000, 1);
        _nameT.font= kFont(16);
        _nameT.placeholder = @"请输入昵称";
        _nameT.clearButtonMode = UITextFieldViewModeWhileEditing;
        [view addSubview:_nameT];
        
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(15, view.bottom , kScreenWideth - 30, 40)];
        label.textColor = COLORFROMCODE(0x9B9B9B, 1);
        label.font = kFont(13);
        label.numberOfLines =0;
        label.text = @"2-16个字符。支持中英文、数字、减号和下划线";
        [self addSubview:label];
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
